package org.lql.chaos.mq.rabbitmq.controller;

import org.lql.chaos.mq.rabbitmq.producer.BusinessRetryProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liangqinglong
 * @date: 2025-08-09 11:17
 * @description:
 **/
@RestController
@RequestMapping("/business-retry")
public class BusinessRetryController {

	@Autowired
	private BusinessRetryProducer businessRetryProducer;

	@RequestMapping("/send")
	public String send() {
		businessRetryProducer.sendMessage("Hello, Business Retry!");
		return "send success";
	}
}
